package com.educationagent.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;


@AiService(
        streamingChatModel = "chatMemoryProvider",
        //加载知识库
        contentRetriever = "myContentRetriever"
)
public interface MemoryAssistant {
    @SystemMessage("你是我的学习教育问答助手")
    Flux<String> chat(@MemoryId Integer memoryId, @UserMessage String message);
}
